<?php

namespace Biz\service\activity\lottery;

use Doraemon\cache\Queue;

class LotteryActivityMsg
{

    public static function imSend($uid, $title, $desc, $cover_img, $link)
    {
        if (empty($uid)) return false;
        $content = [
            'title' => $title,
            'desc' => $desc,
            'cover_img' => $cover_img,
            'link' => $link,
        ];
        Queue::insertQueue('queue/im/send', [
            'to_uids' => [$uid],
            'msgInfo' => [
                'send_user' => \Doraemon\ali\service\Member\Member::HAOHAOZHUFULIGUAN_UID, //好好住福利官
                'con_type' => 2,
                'content' => json_encode($content)
            ]
        ], Queue::QUEUE_DORAEMON);
    }


}